﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AllProduct.aspx.cs" Inherits="BaoJian.WebManager.Function.ExProduct.AllProduct" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
       <link href="../../../style/Style.css" type="text/css" rel="stylesheet">
</head>
<body background="../../../images/right-bj.gif" bottommargin="0">
    <form id="form1" runat="server">
        <div style="float: left"    >   
            <div  style="float: left;width:300px">
                <asp:Label ID="Msg" runat="server" Visible="true"></asp:Label></div>         
            <div style="float: right">
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="New" runat="server" Text="新建" OnClick="New_Click" />&nbsp;&nbsp;&nbsp;&nbsp;  
                <asp:Button ID="Edit" runat="server" Text="编辑" OnClick="Edit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;  
                     
                <asp:Button ID="Delete" runat="server" Text="删除" OnClick="Delete_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
        </div>
        <div>
          <div>  &nbsp;</div>
            <div>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                    BorderWidth="1px" BorderColor="#CCCCCC" BackColor="White" CellPadding="3" 
                    Width="100%" AllowPaging="True" 
                    onpageindexchanging="GridView1_PageIndexChanging" PageSize="20" >
                    <HeaderStyle Font-Size="9pt" Font-Names="宋体" Font-Bold="True" ForeColor="Black" BackColor="SkyBlue">
                    </HeaderStyle>
                    <SelectedRowStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedRowStyle>
                    <RowStyle forecolor="Black" backcolor="White"></RowStyle>
                    <Columns>                       
                        <asp:BoundField DataField="Name" HeaderText="产品名称" ReadOnly="True" SortExpression="Name" />
                        <asp:ImageField  HeaderText="图片"  DataImageUrlField="SImg"  DataImageUrlFormatString ="..\..\..\..\uploads\ExchangeProducts\{0}" >
                            <ControlStyle Height="50px" Width="50px" />
                        </asp:ImageField>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                    <input type="checkbox" id="selectCB" name="selectCB" value="<%# DataBinder.Eval(Container.DataItem,"PID")%>">
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <AlternatingRowStyle BackColor="#E0E0E0" BorderColor="DarkGray" BorderStyle="Dashed"
                        BorderWidth="1px" />
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>

